import os;
import sys;

# Sample if running on windows with cygwin/mingw
if sys.platform == "win32":
    env = Environment(ENV = {'PATH' : os.environ['PATH']},
                      tools = ['mingw', 'Ada'],
                      toolpath = ['tools'])


# Sample if running on Linux with gnat-gcc
else:
    env = Environment(ENV = {'PATH' : os.environ['PATH']},
                      tools = ['Ada'],
                      toolpath = ['tools'],
                      ADA = 'gnat-gcc')



Export("env")
print env.Dump();


SConscript('#/src/99Bottles/SConscript', build_dir="_build/99Bottles", duplicate=0)
SConscript('#/src/Stack/SConscript', build_dir="_build/Stack", duplicate=0)
SConscript('#/src/Small/SConscript', build_dir="_build/Small", duplicate=0)
SConscript('#/src/SmallNoBuild/SConscript')
SConscript('#/src/SmallLib/SConscript', build_dir="#/_build/SmallLib", duplicate=0)
SConscript('#/src/SmallLibNoBuild/SConscript')
SConscript('#/src/SmallShLib/SConscript', build_dir="#/_build/SmallShLib", duplicate=0)

# This was dying previously.  Need to investigate it a bit more.
#SConscript('#/src/Screen/SConscript', build_dir="#/_build/Screen", duplicate=0)

